<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
</head>
<body>
<form action="/insert" method="post">
    <p>
        <label for="name">姓名</label>
        <input type="text" name="name" id="name">
    </p>
    <p>
        性别
        <label>男<input type="radio" name="sex" value="男"></label>
        <label>女<input type="radio" name="sex" value="女"></label>
    </p>
    <p>
        <label for="age">年龄</label>
        <input type="number" name="age" id="age">
    </p>
    <p>
        <label for="did">部门</label>
        <select name="did" id="did">
            <option th:each="d:${ds}" th:value="${d.id}" th:text="${d.name}"></option>
        </select>
    </p>
    <button>添加</button>
</form>
</body>
</html>